#include	<stdio.h>
#include	<string.h>
#include	<stdlib.h>
#include	<stdbool.h>
#include	<unistd.h>
#include	<time.h>
#include	<netinet/in.h>
#include	<arpa/inet.h>
#include	<signal.h>
#include	<fcntl.h>
#include	<sys/ioctl.h>
#include	<sys/time.h>
#include	<event.h>
#include	<evutil.h>
#include	<math.h>

#include "lp_parameters.h"
#include "util.h"
#include "types.h"
#include "TCPconnections.h"
#include "proposer_generate_msgs.h"
#include "learner.h"
#include "performance.h"
#include "UDP.h"
#include "macros.h"

struct timeval startTime_Total, endTime_Total, performance_start_time, performance_end_time, tv1, tv2;
struct event *print_stat_timeout_eve, *timeoutEv2, *socketEv1;

inst *data, *new_data;
proposer_msg *p_msgs[MAX_PROPOSERS];
extern double latency[1000000];

int learnerID, proposerID, lowestDelivered;
int SUBMIT_PER_WAKE, digit;
